﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;
using System.ComponentModel.DataAnnotations;

namespace GameSchool.Models
{
	public class Profile : ProfileBase
	{
		[Display(Name = "Fullt nafn")]
		public virtual string FullName
		{
			get
			{
				return (this.GetPropertyValue("FullName").ToString());
			}
			set
			{
				this.SetPropertyValue("FullName", value);
			}
		}

		[Display(Name = "Heimilisfang")]
		public virtual string Address
		{
			get
			{
				return (this.GetPropertyValue("Address").ToString());
			}
			set
			{
				this.SetPropertyValue("Address", value);
			}
		}

		[Display(Name = "Kennitala")]
		public virtual string Ssn
		{
			get
			{
				return (this.GetPropertyValue("Ssn").ToString());
			}
			set
			{
				this.SetPropertyValue("Ssn", value);
			}
		}

		[Display(Name = "Deild")]
		public virtual string Division
		{
			get
			{
				return (this.GetPropertyValue("Division").ToString());
			}
			set
			{
				this.SetPropertyValue("Division", value);
			}
		}

		[Display(Name = "Braut")]
		public virtual string SubDivision
		{
			get
			{
				return (this.GetPropertyValue("SubDivision").ToString());
			}
			set
			{
				this.SetPropertyValue("SubDivision", value);
			}
		}
		/*
		[Display(Name = "Stig")]
		public virtual int Points
		{
			get
			{
				return (Points);
			}
			set
			{
				this.SetPropertyValue("Points", value);
			}
		}
		/*
		[Display(Name = "Heildarstig")]
		public virtual string TotalPoints
		{
			get
			{
				return (this.GetPropertyValue("TotalPoints").ToString());
			}
			set
			{
				this.SetPropertyValue("TotalPoints", value);
			}
		}*/

		public static Profile GetProfile(string username)
		{
			return Create(username) as Profile;
		}
	}
}